package com.liy.jiagou.pw.controller;

import com.liy.jiagou.common.api.entity.ProductEntity;
import com.liy.jiagou.common.api.entity.PwAccountEntity;
import com.liy.jiagou.common.api.entity.ResultVo;
import com.liy.jiagou.common.api.service.PwService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 *
 **/
@RestController
public class PwController implements PwService {

    private Logger logger = LoggerFactory.getLogger(PwController.class);


    /**
     * 查询商品接口
     *
     */
    @Override
    public ResultVo getPw() {
        logger.info("------------------- PwController-------------- getPw() "    );
        PwAccountEntity pwAccountEntity = new PwAccountEntity("common-pw", "common-query-pw");
        return ResultVo.ok(pwAccountEntity,"/query/pw   invoke success");
    }


    @Override
    public ResultVo addPw(ProductEntity product) {
       return null;
    }

}
